home *** CD-ROM | disk | FTP | other *** search
- on Spir_en_Etud
- global gEtudAct, gChapAct, gEnLec1, gEnLec2, gOldCad, gScopeCh, gScopeSu, gScopeHi, gScopeDe, gScopeEnB, gScopeEnZ, gScopeTr
- if gEnLec1 = 1 then
- if gChapAct = "SU" then
- if gEtudAct = "SU" then
- gScopeSu(SetCadence, 1)
- else
- if gEtudAct = "HI" then
- gScopeHi(SetCadence, 1)
- else
- if gEtudAct = "EN" then
- if gEnLec1 then
- gScopeEnB(SetCadence, 1)
- end if
- else
- nothing()
- end if
- end if
- end if
- else
- if gChapAct = "CH" then
- gScopeCh(SetCadence, 1)
- continue()
- else
- if gChapAct = "TR" then
- gScopeTr(SetCadence, gOldCad)
- else
- if (gChapAct = "DE") and (gEtudAct = "lec") then
- gScopeDe(SetCadence, 1)
- set the visible of sprite 2 to 0
- else
- if gChapAct = "PH" then
- gScopePh(SetCadence, gOldCad)
- else
- nothing()
- end if
- end if
- end if
- end if
- end if
- end if
- if gEnLec2 = 1 then
- gScopeEnZ(SetCadence, 1)
- end if
- end
-
- on Etud_en_Spir
- global gEtudAct, gChapAct, gEnLec1, gEnLec2, gOldCad, gScopeCh, gScopeSu, gScopeHi, gScopeDe, gScopeEnB, gScopeEnZ, gScopeTr
- set gEnLec1 to 0
- set gEnLec2 to 0
- if gChapAct = "SU" then
- if gEtudAct = "SU" then
- if gScopeSu(GetCadence) = 1 then
- gScopeSu(SetCadence, 0)
- set gEnLec1 to 1
- end if
- else
- if gEtudAct = "HI" then
- if gScopeHi(GetCadence) = 1 then
- gScopeHi(SetCadence, 0)
- set gEnLec1 to 1
- end if
- else
- if gEtudAct = "EN" then
- if gScopeEnB(GetCadence) = 1 then
- gScopeEnB(SetCadence, 0)
- set gEnLec1 to 1
- end if
- if gScopeEnZ(GetCadence) = 1 then
- gScopeEnZ(SetCadence, 0)
- set gEnLec2 to 1
- end if
- else
- nothing()
- end if
- end if
- end if
- else
- if gChapAct = "CH" then
- if gScopeCh(GetCadence) = 1 then
- gScopeCh(SetCadence, 0)
- set gEnLec1 to 1
- pause()
- end if
- else
- if gChapAct = "TR" then
- if gScopeTr(GetCadence) <> 1 then
- set gOldCad to gScopeTr(GetCadence)
- gScopeTr(SetCadence, 0)
- set gEnLec1 to 1
- end if
- else
- if (gChapAct = "DE") and (gEtudAct = "lec") then
- if gScopeDe(GetCadence) = 1 then
- gScopeDe(SetCadence, 0)
- set gEnLec1 to 1
- set the visible of sprite 2 to 0
- end if
- else
- nothing()
- end if
- end if
- end if
- end if
- end
-
- on MouseClick
- global gBoutons, gNumSpr, gSurvolPrec
- beep()
- gBoutons(relache, gNumSpr)
- set gSurvolPrec to -1
- end
-
- on mouseDown
- global gBoutons, gNumSpr, g1erSprNav
- set gNumSpr to g1erSprNav
- gBoutons(appuie, gNumSpr)
- end
-
- on mouseUp
- global gNumSpr, gEtaSpir, gBoutons, g1erSprNav, gChapAct, gEtudAct, g1erSprLoc, gVidDuree, gVidTimPos, gActVideo1, gListBtTim
- curseur(1)
- if gNumSpr = g1erSprNav then
- MouseClick()
- else
- pass()
- end if
- end
-